package com.woniu.command.proplancommand;

import com.woniu.command.Command;
import com.woniu.command.handle.ProPlanCommandHandle;
import com.woniu.uitl.ApplicationContextHolder;

public class DeleteProPlanCommand implements Command<Long,String> {

    private ProPlanCommandHandle handle;

    public DeleteProPlanCommand() {
        this.handle = ApplicationContextHolder.getApplicationContext().getBean(ProPlanCommandHandle.class);
    }

    @Override
    public String excute(Long aLong) {
        String msg = handle.deleteProPlanById(aLong);
        return msg;
    }
}
